<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusNotifySysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_notify_sys', function (Blueprint $table) {
            $table->id();
            $table->string('title');                              // 消息标题
            $table->text('description')->nullable();                        // 类型
            $table->string('type')->nullable();                        // 类型 公告0/提醒1
            $table->integer('send_user_id')->nullable();   // 发送用户
            $table->integer('send_range')->nullable();   // 发送范围 部分0 全部1
            $table->text('user_id')->nullable();   // 接收用户
            $table->string('is_del')->nullable()->default(0);   // 是否删除 1删除 0 未删除
            
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_notify_sys');
    }
}
